+((w) => {
    const config = {
        host: " http://localhost:3000",
    }
    w.utils.request = (methods, requestParams) => {
        let p = fetch(
            `${config.host}${requestParams}`,
            {
                method: methods,
                headers: {
                    "Content-Type": "application/json",
                },
                mode: "cors",
                credentials: "include"
            }
        ).then(resp => resp.json())
            .then(resp => resp)
            .catch(err => console.log(err))
        return p;
    };
})(window)